using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Audio;

namespace GameLib
{
    public class SoundManager
    {
        static SoundEffect Click;
        static Boolean SoundOn = true;

        public static void Init(ContentManager content)
        {
            Click = content.Load<SoundEffect>(@"Audio\sound2");
        }

        public static void PlayClick()
        {
            Click.Play();
        }

        public static Boolean IsSoundOn()
        {
            return SoundOn;
        }

        public static void SetSoundOff()
        {
            SoundOn = false;
        }

        public static void SetSoundOn()
        {
            SoundOn = true;
        }
    }
}
